package com.itheima02;

import java.io.FileOutputStream;
import java.io.IOException;

public class Test02 {
    public static void main(String[] args) throws IOException {

        String path = "HomeWork13\\dir\\d.txt";
        FileOutputStream fos = new FileOutputStream(path, true);

        for (int i = 0; i < 10; i++) {
            fos.write("java".getBytes());
            fos.write("\r\n".getBytes());
        }
    }
}
